#-------------------------------------------------#
# Project created by Trae AI                       #
#-------------------------------------------------#

# 使用Qt的核心模块
QT += core serialport widgets concurrent

# 启用C++11支持
CONFIG += c++11

# 设置库的版本信息
VERSION = 1.0.0

# 设置项目名称
TARGET = ScanCameraControlSDK

# 设置项目类型为库
TEMPLATE = lib

# 设置为插件
CONFIG += plugin

# 输出到主程序的SDK目录（根据调试/发布模式 + 32/64位架构区分路径）
contains(CONFIG, debug) {
    # 调试模式路径
    contains(QMAKE_HOST.arch, i386) {
        # 32位架构
        DESTDIR = ../../build/debug/x86/SDK
    } else {
        # 64位架构（兼容x86_64/amd64等）
        DESTDIR = ../../build/debug/x64/SDK
    }
} else {
    # 发布模式路径
    contains(QMAKE_HOST.arch, i386) {
        # 32位架构
        DESTDIR = ../../build/release/x86/SDK
    } else {
        # 64位架构
        DESTDIR = ../../build/release/x64/SDK
    }
}


INCLUDEPATH += . \
               ../../DeviceManagementPlugin

FORMS += \
    ControlModuleParametersWidget.ui \
    SKFunctionSet.ui \
    ScanControlPresetDialog.ui


SOURCES += ScanCameraControlSDK.cpp \
           SKFunctionSet.cpp \
           ScanCameraDevice.cpp \
           ControlModuleParametersWidget.cpp \
           CommandFrameBuilder.cpp \
           ../../DeviceManagementPlugin/SwitchSliderWidget.cpp \
           ScanControlPresetDialog.cpp

HEADERS += ScanCameraControlSDK.h \
           SKFunctionSet.h \
           ScanCameraDevice.h \
           ControlModuleParametersWidget.h \
           CommandFrameBuilder.h \
           ../../DeviceManagementPlugin/SDKInterface.h \
           ../../DeviceManagementPlugin/ControlModuleSDKInterface.h \
           ../../DeviceManagementPlugin/SwitchSliderWidget.h \
           ScanControlPresetDialog.h
